package com.qfedu.user.controller;

import com.qfedu.fmmall.entity.Users;
import com.qfedu.user.service.userCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/user")

public class UserCheckController {

    @Autowired
    private userCheckService userCheckService;

    @GetMapping("/check")
    public Users check(@RequestParam("username") String userName){
        Users users = userCheckService.queryUser(userName);
        return users;
    }

}
